﻿<Window x:Class="SsTool.Base.Windows.ModuleWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="ModuleWindow" Height="300" Width="300" WindowStartupLocation="CenterScreen">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
            <TextBlock Text="Name:"/>
            <TextBox Text="{Binding Name,Mode=TwoWay}"/>
            <TextBlock Text="Caption:"/>
            <TextBox Text="{Binding Caption,Mode=TwoWay}"/>
        </StackPanel>
        <Grid Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <StackPanel Grid.Row="0" Orientation="Horizontal">
                <Button Content="Create" Name="_ctlBtnCreate" Click="_ctlBtnCreate_Click" />
                <Button Content="Update" Name="_ctlBtnUpdate" Click="_ctlBtnUpdate_Click" />
            </StackPanel>
            <DataGrid Grid.Row="1" Name="_ctlGridView" ItemsSource="{Binding Views}"></DataGrid>
        </Grid>
        <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center">
            <Button Content="Submit" Name="_ctlSubmit" Click="_ctlSubmit_Click" />
        </StackPanel>
    </Grid>
</Window>
